﻿@model ZJK.Models.ExtractManage.vmExtract
@{
    Layout = Url.Content("~/Views/Shared/_Layout_BS_Vue.cshtml");
    ViewBag.Title = "专家抽取";
}

@section Header{
    @Scripts.Render("~/bundles/ztree/js")
    @Styles.Render("~/bundles/ztree/css")
}

<div id="PAGE_MODEL">
    <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="false">
        <div class="panel panel-default">
            <div class="panel-heading" role="tab" id="heading1">
                <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion" 
                       href="#collapse1" aria-expanded="true" 
                       aria-controls="collapse1">
                        1、关联项目列表
                    </a>
                </h4>
            </div>
            <div id="collapse1" class="panel-collapse collapse in" 
                 role="tabpanel" aria-labelledby="heading1">
                <div class="panel-body">
                    
                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading" role="tab" id="heading2">
                <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion" 
                       href="#collapse2" aria-expanded="true" 
                       aria-controls="collapse2">
                        2、抽取选项
                    </a>
                </h4>
            </div>
            <div id="collapse2" class="panel-collapse collapse in" 
                 role="tabpanel" aria-labelledby="heading2">
                <div class="panel-body">

                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading" role="tab" id="heading3">
                <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion"
                       href="#collapse3" aria-expanded="true"
                       aria-controls="collapse2">
                        3、备选专家查询
                    </a>
                </h4>
            </div>
            <div id="collapse3" class="panel-collapse collapse in"
                 role="tabpanel" aria-labelledby="heading3">
                <div class="panel-body">

                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading" role="tab" id="heading4">
                <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion"
                       href="#collapse4" aria-expanded="true"
                       aria-controls="collapse4">
                        4、专家抽取操作
                    </a>
                </h4>
            </div>
            <div id="collapse4" class="panel-collapse collapse in"
                 role="tabpanel" aria-labelledby="heading4">
                <div class="panel-body">

                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading" role="tab" id="heading5">
                <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion"
                       href="#collapse5" aria-expanded="true"
                       aria-controls="collapse5">
                        5、结果列表
                    </a>
                </h4>
            </div>
            <div id="collapse5" class="panel-collapse collapse in"
                 role="tabpanel" aria-labelledby="heading5">
                <div class="panel-body">

                </div>
            </div>
        </div>
    </div>

    <!--抽取结果设置-->
    <div id="FormJGXX" class="modal" data-backdrop="static">
        <!--对话框-->
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <!--对话框头-->
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title">抽取结果</h4>
                </div>
                <!--对话框体-->
                <div class="modal-body">
                    <div class="row">
                        <div class="col-md-12">
                            <form id="frmXMYZ" class="form-inline" onsubmit="vm.searchOwners(); return false;">
                                <div class="form-group">
                                    <label for="FormSelectOwner_Name">单位名称：</label>
                                    <input id="FormSelectOwner_Name" type="text" class="form-control"
                                           v-model="OwnerQueryKeyword" />
                                    <button type="submit" class="btn btn-primary">
                                        <i class="fa fa-search"></i>
                                        查询
                                    </button>
                                </div>
                            </form>
                        </div>
                    </div>
                    <table class="table table-bordered table-hover table-responsive" style="margin-top:.5em;">
                        <thead>
                            <tr>
                                <th class="bg-primary text-center">序</th>
                                <th class="bg-primary">业主名称</th>
                                <th class="bg-primary">联系人</th>
                                <th class="bg-primary">联系电话</th>
                                <th class="bg-primary text-center">选</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="(e,index) in OwnerQueryBXs">
                                <td class="text-center">{{index+1}}</td>
                                <td>{{e.entName}}</td>
                                <td>
                                    {{e.entLinker}}
                                </td>
                                <td>
                                    {{e.entLinkPhone}}
                                </td>
                                <td class="text-center">
                                    <a href="#" v-on:click="selectAOwner(e)" title="选择当前企业">
                                        <i class="fa fa-thumb-tack"></i>
                                    </a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <!--对话框脚-->
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        <i class="fa fa-close"></i>
                        关闭
                    </button>
                </div>
            </div>
        </div>
    </div>

</div>

<input type="hidden" id="extractID" value="@Model.extractRecordID" />
<div id="accordion">
    <!-- 关联项目列表 -->
    <div>
        <h3>
            <a href="#">1、关联项目列表</a>
        </h3>
        <div>
            <div style="position: relative; width: 100%; margin: 0.7em 0;">
                <div class="ui-widget-header ui-corner-all" style="width: 25%; float: left; padding: 0.7em;">
                    <b>抽取记录标题：</b>
                </div>
                <div class="ui-widget-content ui-corner-all" style="margin-left: 28%; top: 0px; padding: 0.7em 0.4em;">
                    @Model.extractRecordTitle
                </div>
                <div class="clear">
                </div>
            </div>
            <div style="position: relative; width: 100%; margin: 0.7em 0;">
                <div class="ui-widget-header ui-corner-all" style="width: 25%; float: left; padding: 0.7em;">
                    <b>抽取关联项目列表：</b>
                </div>
                <div class="ui-widget-content ui-corner-all" style="margin-left: 28%; top: 0px; padding: 0.7em 0.4em;">
                    <div id="project_list">
                        @foreach (var _p in @Model.extractRecordSelectedProjects)
                        {
                            <p>
                                <span>[</span><span>@_p.projectCode</span><span>]</span><span>@_p.projectName</span>
                            </p>
                        }
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
    </div>
    <!-- 抽取选项 -->
    <div>
        <h3>
            <a href="#">2、抽取选项</a>
        </h3>
        <div>
            <!-- 专家所在区域 -->
            <div style="position: relative; width: 100%; margin: 0.7em 0;">
                <div class="ui-widget-header ui-corner-all" style="width: 25%; float: left; padding: 0.7em;">
                    <b>2.0、专家所在：</b>
                </div>
                <div class="ui-corner-all" style="width: 25%; float: right; padding: 0.7em;">
                    <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                    选择：当前专家所在区域；
                </div>
                <div class="ui-widget-content ui-corner-all" style="margin-left: 28%; margin-right: 28%; top: 0px; padding: 0.7em;">
                    <!--选择城市功能      star      -->
                    <script type="text/javascript" src="@Url.Content("~/Content/Area_mini.js")"></script>
                    <script type='text/javascript'>
                        $(document).ready(function () {
                            $("#zjAreaProvince").change(function () {
                                LoadCity();
                                //LoadCounty();
                            });

                            /*
                            $("#zjAreaCity").change(function () {
                            LoadCounty();
                            });
                            */

                            LoadArea('广西', '南宁');
                        });

                        function LoadArea(prov, city) {
                            LoadProvince(prov);
                            LoadCity(city);

                        }
                        function LoadProvince(values) {
                            $("#zjAreaProvince").empty();
                            for (var id in countryAreaData) {

                                $("#zjAreaProvince").append(" <option value='" + id + "'>" + id + "</option>");

                            }
                            if (typeof (values) == "string") {
                                $("#zjAreaProvince option[value=" + values + "]").attr("selected", true)
                            }
                        }
                        function LoadCity(values) {
                            $("#zjAreaCity").empty();
                            var s1 = $("#zjAreaProvince option:selected").val();
                            for (var id2 in countryAreaData[s1]) {

                                $("#zjAreaCity").append(" <option value='" + id2 + "'>" + id2 + "</option>");
                            }
                            if (typeof (values) == "string") {
                                $("#zjAreaCity option[value=" + values + "]").attr("selected", true)

                            }
                        }
                    </script>
                    <select id="zjAreaProvince">
                        <option value="省份">省份</option>
                    </select>
                    <select id="zjAreaCity">
                        <option value="地市">地市</option>
                    </select>
                    <!--选择城市功能      end      -->
                </div>
                <div class="clear">
                </div>
            </div>
            <!-- 抽取类型 -->
            <div style="position: relative; width: 100%; margin: 0.7em 0;">
                <div class="ui-widget-header ui-corner-all" style="width: 25%; float: left; padding: 0.7em;">
                    <b>2.1、专家抽取类型：</b>
                </div>
                <div class="ui-corner-all" style="width: 25%; float: right; padding: 0.7em;">
                    <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                    选择：当前专家抽取操作的类型；
                </div>
                <div class="ui-widget-content ui-corner-all" style="margin-left: 28%; margin-right: 28%; top: 0px; padding: 0.7em;">
                    <input type="radio" name="rdExtractType" id="extracOption_ZYZJ" value="专业评委" checked="checked" />
                    <label for="extracOption_ZYZJ">
                        专业评委
                    </label>；
                    <input type="radio" name="rdExtractType" id="extracOption_SWZJ" value="商务评委" />
                    <label for="extracOption_SWZJ">
                        商务评委
                    </label>；
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
            <!-- 抽取专家的搜索分类 -->
            <div style="position: relative; width: 100%; margin: 0.7em 0;">
                <div class="ui-widget-header ui-corner-all" style="width: 25%; float: left; padding: 0.7em;">
                    <b>2.2、专家分类：</b>
                </div>
                <div class="ui-corner-all" style="width: 25%; float: right; padding: 0.7em;">
                    <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                    请勾选所要检索的专家的所属分类。
                </div>
                <div class="ui-widget-content ui-corner-all" style="margin-left: 28%; margin-right: 28%; top: 0px; padding: 0.7em;">
                    <div class="ui-corner-all" style="margin-right: 0; padding: 0.3em; height: 120px; width: 90%; overflow: scroll; background-color: #fff;">
                        <ul id="treeCategory" class="ztree"></ul>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
            <!-- 抽取专家的搜索专业 -->
            <div style="position: relative; width: 100%; margin: 0.7em 0;">
                <div class="ui-widget-header ui-corner-all" style="width: 25%; float: left; padding: 0.7em;">
                    <b>2.3、专家专业：</b>
                </div>
                <div class="ui-corner-all" style="width: 25%; float: right; padding: 0.7em;">
                    <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                    请设置所要检索的专家专业
                </div>
                <div class="ui-widget-content ui-corner-all" style="margin-left: 28%; margin-right: 28%; top: 0px; padding: 0.7em;">
                    <input type="text" style="width: 90%;" id="txtProfessional" />
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
            <!-- 通知方式 -->
            <div style="position: relative; width: 100%; margin: 0.7em 0;">
                <div class="ui-widget-header ui-corner-all" style="width: 25%; float: left; padding: 0.7em;">
                    <b>2.4、抽取数量：</b>
                </div>
                <div class="ui-corner-all" style="width: 25%; float: right; padding: 0.7em;">
                    <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                    设置一次性自动抽取的专家数量
                    <div id="msg">
                    </div>
                </div>
                <div class="ui-widget-content ui-corner-all" style="margin-left: 28%; margin-right: 28%; top: 0px; padding: 0.7em;">
                    <input type="text" id="txtExtracCount" value="5" style="width: 90%;" />
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
            <!-- 通知方式 -->
            <div style="position: relative; width: 100%; margin: 0.7em 0;">
                <div class="ui-widget-header ui-corner-all" style="width: 25%; float: left; padding: 0.7em;">
                    <b>2.5、通知方式：</b>
                </div>
                <div class="ui-corner-all" style="width: 25%; float: right; padding: 0.7em;">
                    <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                    选择：<br />
                    <b>自动方式</b>，由系统自动拨号通知随机抽取的评标专家；
                    <br />
                    <b>手动方式</b>，由工作人员手工拨打随机抽取的评标专家联系电话，确定专家是否参加评标；
                    <br />
                    <div id="msg">
                    </div>
                </div>
                <div class="ui-widget-content ui-corner-all" style="margin-left: 28%; margin-right: 28%; top: 0px; padding: 0.7em;">
                    <input type="radio" name="noticeOption" id="extracOption_A" value="A" />
                    <label for="extracOption_A" style="color: Lime;">
                        自动
                    </label>；
                    <input type="radio" name="noticeOption" id="extracOption_M" value="M" checked="checked" />
                    <label for="extracOption_M" style="color: Red;">
                        手动
                    </label>；
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
    </div>
    <!-- 根据抽取选项检索备选专家列表 -->
    <div>
        <h3>
            <a href="#">3、备选专家查询</a>
        </h3>
        <div>
            <div style="position: relative; width: 100%; margin: 0.7em 0;">
                <div class="ui-widget-header ui-corner-all" style="width: 25%; float: left; padding: 0.7em;">
                    操作：
                </div>
                <div class="ui-corner-all" style="margin-left: 28%; padding: 0.7em;">
                    <a href="javascript:getExperts();">
                        <span class="ui-icon ui-icon-search" style="float: left; margin-right: .3em;"></span>
                        3.1、点击这里获取符合抽取选项的备选专家
                    </a>
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
            <div style="position: relative; width: 100%; margin: 0.7em 0;">
                <div class="ui-widget-header ui-corner-all" style="width: 25%; float: left; padding: 0.7em;">
                    <b>备选专家信息<a href="javascript:showExpert();">》</a></b>
                </div>
                <div class="ui-widget-content ui-corner-all" style="margin-left: 28%; top: 0px; padding: 0.7em;">
                    <span style="font-size: 1.2em;">本次查询符合条件的专家：</span>
                    <span style="font-size: 2em; color: red;" id="expertCount">0</span>
                    <span style="font-size: 1.2em;">位；</span>
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
            <div id="expList"></div>
        </div>
    </div>
    <!-- 专家抽取操作 -->
    <div>
        <h3>
            <a href="#">4、专家抽取操作</a>
        </h3>
        <!-- 操作栏 -->
        <div>
            <div style="position: relative; width: 100%; margin: 0.7em 0;">
                <div class="ui-widget-header ui-corner-all" style="width: 25%; float: left; padding: 0.7em;">
                    <b>抽取操作：</b>
                </div>
                <div class="ui-corner-all" style="width: 25%; float: right; padding: 0.7em;">
                    <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                    设置抽取选项、获取备选专家后，点击按钮进行抽取操作；
                </div>
                <div class="ui-widget-content ui-corner-all" style="margin-left: 28%; margin-right: 28%; top: 0px; padding: 0.7em;">
                    <a href="javascript:extract();" class="btn" id="doExtract">
                        <span class="ui-icon ui-icon-play"
                              style="float: left; margin-right: .3em;" id="doExtractIcon"></span><span id="doExtractCaption">4.1、开始</span>
                    </a>
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
            <!-- 抽取结果栏 -->
            <div class="ui-widget-header ui-corner-all" style="width: 25%; float: left; padding: 0.7em;">
                <b>抽取结果及操作：</b>
            </div>
            <div class="ui-corner-all" style="width: 25%; float: right; padding: 0.7em;">
            </div>
            <div class="ui-widget-content ui-corner-all" style="margin-left: 28%; margin-right: 28%; top: 0px; padding: 0.7em;">
                <!-- 结果栏 -->
                <label id="expertBXLB" style="font-size: 6em;">
                    随机选取
                </label>
            </div>
            <div class="clear">
            </div>
        </div>
    </div>
    <!-- 专家抽取结果 -->
    <div>
        <h3>
            <a href="#">5、结果列表</a>
        </h3>
        <div>
            <div style="position: relative; width: 100%;">
                <div style="padding: 0.7em;">
                    <input type="button" value="5.1、抽取记录导出Excel" id="doSave" class="btn" onclick="exportThisExtract()" />
                    <input type="button" value="5.2、抽取记录打印" id="doPrint" class="btn" onclick="window.location.href = '@Url.Action("PrintExtract", new { extractID = Model.extractRecordID })'" />
                </div>
                <div class="clear">
                </div>
            </div>
            <!-- 详细记录列表的模板 -->
            <script id="DataTemplate_Details" type="text/html">
                {{if dIsOK > 0 }}
                <!-- 参加评标的专家 -->
                <tr>
                    <td style="padding: .5em; text-align: center;" class="ui-state-default">
                        {{= rowIDX }}
                    </td>
                    <td style="padding: .5em; text-align: center;" class="ui-state-default">
                        {{= dType }}
                    </td>
                    <td style="padding: .5em; text-align: center;" class="ui-state-default">
                        {{= expName }}
                    </td>
                    <td style="padding: .5em;" class="ui-state-default">
                        {{= expCompany }}
                    </td>
                    <td style="padding: .5em;" class="ui-state-default">
                        {{= expPhone }}
                    </td>
                    <td style="padding: .5em;" class="ui-state-default">
                        {{= expTitle }}
                    </td>
                    <td style="padding: .5em; text-align: center;" class="ui-state-default">
                        <a href="javascript:editThisDetail('${dId}')">
                            <strong>参加评标</strong>
                        </a><div style="color:#888;">
                            {{= dDescribe }}
                        </div>
                    </td>
                </tr>
                {{else}}
                <tr>
                    <td style="padding: .5em; text-align: center;" class="ui-state-default">
                        {{= rowIDX }}
                    </td>
                    <td style="padding: .5em; text-align: center;" class="ui-state-default">
                        {{= dType }}
                    </td>
                    <td style="padding: .5em; text-align: center; color: #BBB;" class="ui-state-default">
                        {{= expName }}
                    </td>
                    <td style="padding: .5em; color: #BBB;" class="ui-state-default">
                        {{= expCompany }}
                    </td>
                    <td style="padding: .5em; color: #BBB;" class="ui-state-default">
                        {{= expPhone }}
                    </td>
                    <td style="padding: .5em; color: #BBB;" class="ui-state-default">
                        {{= expTitle }}
                    </td>
                    <td style="padding: .5em; text-align: center;" class="ui-state-default">
                        <a href="javascript:editThisDetail('${dId}')">
                            <strong><span style="color: red;">不</span>参加评标</strong>
                        </a>
                        <div style="color:#888;">
                            {{= dDescribe }}
                        </div>
                    </td>
                </tr>
                {{/if}}
            </script>
            <!-- 抽取结果的表格 -->
            <table style="border-collapse: collapse; width: 100%;">
                <thead>
                    <tr>
                        <th class="ui-widget-header" style="padding: .5em; white-space: nowrap;">
                            序号
                        </th>
                        <th class="ui-widget-header" style="padding: .5em; white-space: nowrap;">
                            专家类型
                        </th>
                        <th class="ui-widget-header" style="padding: .5em; white-space: nowrap;">
                            姓名
                        </th>
                        <th class="ui-widget-header" style="padding: .5em;">
                            工作单位
                        </th>
                        <th class="ui-widget-header" style="padding: .5em;">
                            联系号码
                        </th>
                        <th class="ui-widget-header" style="padding: .5em;">
                            职称
                        </th>
                        <th class="ui-widget-header" style="padding: .5em;">
                            抽取结果及记录
                        </th>
                    </tr>
                </thead>
                <tbody id="tableDetails"></tbody>
            </table>
        </div>
    </div>
</div>
<!-- 编辑详细记录的弹出窗 -->
<div id="FormEdit">
    <div style="position: relative; width: 100%; margin: 0.7em 0;">
        <p><span id="FormEditDetail_ExpertName" style="font-size:1.5em; font-weight:bold;"></span><span id="FormEditDetail_ExpertMobile"></span></p>
        <p><span id="FormEditDetail_ExpertCompany"></span>[<span id="FormEditDetail_ExpertTitle"></span>]</p>
    </div>
    <div style="position: relative; width: 100%; margin: 0.7em 0;">
        <div class="ui-widget-header ui-corner-all" style="width: 35%; float: left; padding: 0.7em;">
            <b>是否参加本次评标：</b>
        </div>
        <div class="ui-widget-content ui-corner-all" style="margin-left: 38%; top: 0px; padding: 0.7em 0.4em;">
            <input id="FormEditDetail_isSelected" type="checkbox" />
            <label for="FormEditDetail_isSelected">参加评标</label>
        </div>
        <div class="clear">
        </div>
    </div>
    <div style="position: relative; width: 100%; margin: 0.7em 0;">
        <div class="ui-widget-header ui-corner-all" style="width: 35%; float: left; padding: 0.7em;">
            <b>抽取信息：</b>
        </div>
        <div class="ui-widget-content ui-corner-all" style="margin-left: 38%; top: 0px; padding: 0.7em 0.4em;">
            <textarea id="FormEditDetail_describe"></textarea>
            <input type="hidden" id="FormEditDetail_Id" />
        </div>
        <div class="clear">
        </div>
    </div>
    <div style="position: relative; width: 100%; margin: 0.7em 0;"></div>
</div>

@section Script{
    <script src='@Url.Content("~/Scripts/jquery.form.js")' type="text/javascript"></script>

    <script type="text/javascript">
        //初始的项目编号
        var pid = "@Request["id"]";

        //获取部门项目数量信息的地址
        var strUrlgetDetpProjectInfo = '@Url.Action("GetDeptProjectInfo")';
        //获取部门项目数量信息的地址
        var strUrlgetProjectInfos = '@Url.Action("GetProjectInfos")';

        //定义获取企业信息列表地址
        var strUrlQEnts = '@Url.Action("GetByName", "Enterprise")';
        //定义跳转到项目信息的地址
        var strUrlToProjectInfo = '@Url.Action("Info")';

        //链接地址定义
        var URLs = {
            //获取项目基本信息的地址
            URL_GET_PROJECT_BASE_INFO: '@Url.Action("QueryProjBaseInfo")'
            , URL_SAVE_PROJECT_BASE_INFO: '@Url.Action("SaveProjInfo")'                                 //保存项目基本信息
            , URL_SAVE_PROJECT_PLAN_INFO: '@Url.Action("SavePlanInfo")'                                 //保存项目计划信息
            , URL_SAVE_PROJECT_PLAN_INFO_FOR_ALL: '@Url.Action("SavePlanInfoForAllProjects")'           //关联保存其他项目计划信息
            , URL_GET_PROJECT_TENDER_BULLETINS: '@Url.Action("GetProjectTenderBulletins", "Project")'   //获取项目公告列表
            , URL_GET_PROJECT_TREE: '@Url.Action("GetProjectTree", "Project")'                          //获取项目树状结构数据
            , URL_SPLIT_PROJECT: '@Url.Action("SplitProject", "Project")'                               //获取项目树状结构数据
            , URL_HIDE_PROJECT_TENDER_BULLETINS: '@Url.Action("HideProjectTenderBulletins", "Project")' //隐藏项目公告
            , URL_GET_PROJECT_BIDDERS: '@Url.Action("GetProjectBindders")'                              //获取项目的投标人列表
            , URL_DELETE_WIN_TB: '@Url.Action("DeleteProjectWinTb")'                                    //删除中标退保申请记录
            , URL_DELETE_NO_WIN_TB: '@Url.Action("DeleteProjectNoWinTb")'                               //删除不中标退保申请记录
            , URL_DELETE_OFFER_RECORD: '@Url.Action("DeleteProjectOffer")'                              //删除项目购买记录
            , URL_GOTO_ENTERPRISE_LIST: '@Url.Action("EnterpriseList", "Enterprise")'                   //删除项目购买记录
            , URL_GOTO_TENDER_OFFER_LIST: '@Url.Action("Salelist", "TenderOffer")'                      //查询项目购买记录
            , URL_GET_PROJECT_SUBACCOUNT: '@Url.Action("GetProjectSubAccount", "ProjectTenderBond")'    //查询项目保证金子账户信息
            , URL_NEW_PROJECT_SUBACCOUNT: '@Url.Action("NewProjectSubAccount", "ProjectTenderBond")'    //申请新的项目保证金子账户信息
            , URL_UPD_PROJECT_TENDERBOND_OPENDATE: '@Url.Action("UpdateProjectOpenDate", "ProjectTenderBond")'    //修改项目保证金开标时间
            , URL_UPD_PROJECT_TENDERBOND_ENDDATE: '@Url.Action("UpdateBZJEndDate", "ProjectTenderBond")'    //修改项目保证金截止时间
            , URL_GET_PROJECT_TENDERBOND_INAMOUNT: '@Url.Action("GetInAmount", "ProjectTenderBond")'    //获取保证金入账列表
            , URL_GET_PROJECT_TENDERBOND_OUTAMOUNT: '@Url.Action("GetOutAmount", "ProjectTenderBond")'    //获取保证金退还列表
            , URL_PROJECT_TENDERBOND_OUTAMOUNT_A: '@Url.Action("OutAmount_A", "ProjectTenderBond")'    //保证金自动退还
            , URL_PROJECT_TENDERBOND_OUTAMOUNT_M: '@Url.Action("OutAmount_M", "ProjectTenderBond")'    //保证金手动退还
            , URL_END_PROJECT_TENDERBOND: '@Url.Action("EndProject", "ProjectTenderBond")'              //项目保证金操作完成
            , URL_LINK_BIDDER: '@Url.Action("LinkBidder", "ProjectTenderBond")'                         //关联投标人和保证金入账记录
            , URL_GOTO_TENDERBOND_BACK: '@Url.Action("TenderBondBackApproval", "ProjectTenderBond")'                         //关联投标人和保证金入账记录
        }

        //定义页面ViewModelData
        //项目基本信息
        var vmdata_ProjectBaseInfo = @Html.Raw(
            Newtonsoft.Json.JsonConvert.SerializeObject(
                new ywxt_new2.Models.Project.BaseInfo.ProjectBaseInfo()
            )
        );

        //项目时间安排信息
        var vmdata_ProjectPlanInfo = @Html.Raw(
            Newtonsoft.Json.JsonConvert.SerializeObject(
                new ywxt_new2.Models.Project.BaseInfo.ProjectPlanInfo()
            )
        );

        //项目公告发布信息
        var vmdata_ProjectTenderBulletin = @Html.Raw(
            Newtonsoft.Json.JsonConvert.SerializeObject(
                new List<ywxt_new2.Models.Project.BaseInfo.ProjectTenderBulletin>()
            )
        );

        $(function () {
            //初始化日期空间
            $(".form-control-date").datetimepicker({
                locale: 'zh-CN'
                , sideBySide: true
                , widgetPositioning:{
                    horizontal: 'auto',
                    vertical: 'bottom'
                }
                , format: 'YYYY-MM-DD'
            }).on('dp.change', function (e) {
                $(this).val(moment(e.date).format('YYYY-MM-DD'));
            });


            $(".form-control-datetime").datetimepicker({
                locale: 'zh-CN'
                , sideBySide: true
                , widgetPositioning:{
                    horizontal: 'auto',
                    vertical: 'bottom'
                }
                , format: 'YYYY-MM-DD HH:mm'
            }).on('dp.change', function (e) {
                $(this).val(moment(e.date).format('YYYY-MM-DD HH:mm'));
            });


            initPage();

        });
    </script>
    <!--树形结构-->
    @Scripts.Render(
        "~/Scripts/bootstrap-treeview.min.js")
    @Styles.Render(
        "~/Scripts/bootstrap-treeview.min.css")

    <script src='@Url.Content("~/Scripts/Project/index.js")' type="text/javascript"></script>
}
